package com.ficus.road.maintain.client.Response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;

/**
 * 通过ubid获取分数详情
 */
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class GetScoreDetailsResponse {
    /**
     * 分数
     */
    @JsonProperty("score")
    private Double total = 0.0;

    /**
     * unitId
     */
    @Id
    @JsonProperty("unitId")
    private String unitId;

    /**
     * 时间
     */
    @JsonProperty("inspectionTime")
    private Date inspectionTime;
    /**
     * 养护标段 后续改成养护项目部
     */
    @JsonProperty("unitName")
    private String unitName;
    private String date;

}
